package com.cdpowernode.pncrm.service;

import com.cdpowernode.pncrm.javabean.Activity;
import com.cdpowernode.pncrm.javabean.ActivityRemark;
import com.cdpowernode.pncrm.javabean.ActivityVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jy
 * @version 1.0
 * @date 2021/12/6 13:05
 */
public interface ActivityService {

    void addActivity(Activity activity);

    PageInfo<Activity> findByCondition(ActivityVo activityVo);

    Activity findById(String id);

    //选择导出(根据id查找)
    List<Activity> findXzById(String[] ids);

    void updateActivity(Activity activity);

    boolean deleteActivityById(String[] ids);

    //导出全部(直接查找全部)
    List<Activity> findAll();

    void addActivityList(List<Activity> activityList);

    List<ActivityRemark> getRemarkListByAid(String id);

    boolean deleteRemark(String id);

    boolean saveRemark(ActivityRemark ar);
}
